﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="MensagemDataSet" targetNamespace="http://tempuri.org/MensagemDataSet.xsd" xmlns:mstns="http://tempuri.org/MensagemDataSet.xsd" xmlns="http://tempuri.org/MensagemDataSet.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections />
        <Tables />
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="MensagemDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="MensagemDataSet" msprop:Generator_DataSetName="MensagemDataSet" msprop:EnableTableAdapterManager="true">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="Mensagem" msprop:Generator_UserTableName="Mensagem" msprop:Generator_RowDeletedName="MensagemRowDeleted" msprop:Generator_RowChangedName="MensagemRowChanged" msprop:Generator_RowClassName="MensagemRow" msprop:Generator_RowChangingName="MensagemRowChanging" msprop:Generator_RowEvArgName="MensagemRowChangeEvent" msprop:Generator_RowEvHandlerName="MensagemRowChangeEventHandler" msprop:Generator_TableClassName="MensagemDataTable" msprop:Generator_TableVarName="tableMensagem" msprop:Generator_RowDeletingName="MensagemRowDeleting" msprop:Generator_TablePropName="Mensagem">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Id" msprop:Generator_UserColumnName="Id" msprop:Generator_ColumnVarNameInTable="columnId" msprop:Generator_ColumnPropNameInRow="Id" msprop:Generator_ColumnPropNameInTable="IdColumn" type="xs:long" />
              <xs:element name="Data" msprop:Generator_UserColumnName="Data" msprop:Generator_ColumnVarNameInTable="columnData" msprop:Generator_ColumnPropNameInRow="Data" msprop:Generator_ColumnPropNameInTable="DataColumn" type="xs:dateTime" minOccurs="0" />
              <xs:element name="IdTipoMensagem" msprop:Generator_UserColumnName="IdTipoMensagem" msprop:Generator_ColumnVarNameInTable="columnIdTipoMensagem" msprop:Generator_ColumnPropNameInRow="IdTipoMensagem" msprop:Generator_ColumnPropNameInTable="IdTipoMensagemColumn" type="xs:long" minOccurs="0" />
              <xs:element name="Descricao" msprop:Generator_UserColumnName="Descricao" msprop:Generator_ColumnVarNameInTable="columnDescricao" msprop:Generator_ColumnPropNameInRow="Descricao" msprop:Generator_ColumnPropNameInTable="DescricaoColumn" type="xs:string" minOccurs="0" />
              <xs:element name="Estado" msprop:Generator_UserColumnName="Estado" msprop:Generator_ColumnPropNameInRow="Estado" msprop:Generator_ColumnVarNameInTable="columnEstado" msprop:Generator_ColumnPropNameInTable="EstadoColumn" type="xs:string" minOccurs="0" />
              <xs:element name="Unicode" msprop:Generator_UserColumnName="Unicode" msprop:Generator_ColumnPropNameInRow="Unicode" msprop:Generator_ColumnVarNameInTable="columnUnicode" msprop:Generator_ColumnPropNameInTable="UnicodeColumn" type="xs:boolean" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="Contacto" msprop:Generator_UserTableName="Contacto" msprop:Generator_RowDeletedName="ContactoRowDeleted" msprop:Generator_RowChangedName="ContactoRowChanged" msprop:Generator_RowClassName="ContactoRow" msprop:Generator_RowChangingName="ContactoRowChanging" msprop:Generator_RowEvArgName="ContactoRowChangeEvent" msprop:Generator_RowEvHandlerName="ContactoRowChangeEventHandler" msprop:Generator_TableClassName="ContactoDataTable" msprop:Generator_TableVarName="tableContacto" msprop:Generator_RowDeletingName="ContactoRowDeleting" msprop:Generator_TablePropName="Contacto">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="IdMensagem" msprop:Generator_UserColumnName="IdMensagem" msprop:Generator_ColumnVarNameInTable="columnIdMensagem" msprop:Generator_ColumnPropNameInRow="IdMensagem" msprop:Generator_ColumnPropNameInTable="IdMensagemColumn" type="xs:long" />
              <xs:element name="IdGrupo" msprop:Generator_UserColumnName="IdGrupo" msprop:Generator_ColumnVarNameInTable="columnIdGrupo" msprop:Generator_ColumnPropNameInRow="IdGrupo" msprop:Generator_ColumnPropNameInTable="IdGrupoColumn" type="xs:long" minOccurs="0" />
              <xs:element name="IdContacto" msprop:Generator_UserColumnName="IdContacto" msprop:Generator_ColumnVarNameInTable="columnIdContacto" msprop:Generator_ColumnPropNameInRow="IdContacto" msprop:Generator_ColumnPropNameInTable="IdContactoColumn" type="xs:long" minOccurs="0" />
              <xs:element name="Estado" msprop:Generator_UserColumnName="Estado" msprop:Generator_ColumnPropNameInRow="Estado" msprop:Generator_ColumnVarNameInTable="columnEstado" msprop:Generator_ColumnPropNameInTable="EstadoColumn" type="xs:string" minOccurs="0" />
              <xs:element name="Resultado" msprop:Generator_UserColumnName="Resultado" msprop:Generator_ColumnVarNameInTable="columnResultado" msprop:Generator_ColumnPropNameInRow="Resultado" msprop:Generator_ColumnPropNameInTable="ResultadoColumn" type="xs:string" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Mensagem" />
      <xs:field xpath="mstns:Id" />
    </xs:unique>
    <xs:keyref name="FK_Mensagem_Contacto" refer="Constraint1" msprop:rel_Generator_UserRelationName="FK_Mensagem_Contacto" msprop:rel_Generator_RelationVarName="relationFK_Mensagem_Contacto" msprop:rel_Generator_UserChildTable="Contacto" msprop:rel_Generator_UserParentTable="Mensagem" msprop:rel_Generator_ParentPropName="MensagemRow" msprop:rel_Generator_ChildPropName="GetContactoRows">
      <xs:selector xpath=".//mstns:Contacto" />
      <xs:field xpath="mstns:IdMensagem" />
    </xs:keyref>
  </xs:element>
</xs:schema>